// 携程官方标准
body {
    max-width: 540px;
    min-width: 320px;
    margin: 0 auto;
    font: normal 14px/1.5 Tahoma, "Lucida Grande", Verdana, "Microsoft Yahei", STXihei, hei;
    color: #000;
    background: #f2f2f2;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    height: 2000px;
}

li {
    list-style: none;
}

* {
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: #222;
}

div {
    box-sizing: border-box;
}

// 固定定位的搜索盒子
.search_index {
    display: flex;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    // 固定定位一定要给宽,固定定位的宽和父级没关系
    width: 100%;
    height: 44px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
    background-color: #F6F6F6;
    max-width: 540px;
    min-width: 320px;

    .search {
        flex: 1;
        height: 26px;
        border: 1px solid #ccc;
        border-radius: 5px;
        margin: auto 10px;
        box-shadow: 0 2px 4px rgba(0,0,0,.3);
        font-size: 12px;
        line-height: 24px;
    }
    .search::before {
        content: "";
        float: left;
        width: 15px;
        height: 15px;
        background: url(../images/sprite.png) no-repeat -59px -279px;
        background-size: 104px auto;
        margin: 5px;
    }

    .user {
        height: 44px;
        width: 44px;
        font-size: 12px;
        text-align: center;
        color: skyblue;
    }

    .user::before {
        content: "";
        display: block;
        width: 23px;
        height: 23px;
        background: url(../images/sprite.png) no-repeat -59px -194px;
        background-size: 104px auto;
        margin: 4px auto -2px;
    }
}

.focus img {
    width: 100%;
    margin-top: 44px;
}

.local_nav {
    display: flex;
    height: 64px;
    margin: 3px 4px;
    border-radius: 8px;
    background-color: #fff;
    .local_nav_item {
        flex: 1;
        .local_nav_item_lk {
            display: flex;
            // 设置主轴为y
            flex-direction: column;
            align-items: center;
            .local_nav_img {
                height: 32px;
                width: 32px;
                background: url(../images/localnav_bg.png) no-repeat;
                background-size: 32px auto;
                margin-top: 5px;
            }
        }
    }
}

nav {
    border-radius: 8px;
    margin: 0 3px 4px;
    overflow: hidden;
    .nav_common {
        display: flex;
        height: 88px;
        .nav_items {
            flex: 1;
            // 既是nav_common的子元素，也是a的父元素
            display: flex;
            flex-direction: column;
            .nav_items_lk {
                flex: 1;
                color: #fff;
                text-align: center;
                line-height: 44px;
            }
            .nav_items_lk:nth-child(1) {
                border-bottom: 1px solid #fff;
            }
        }
        .nav_items:nth-child(-n+2) {
            border-right: 1px solid #fff;
        }
        .nav_items:nth-child(1) .nav_items_lk {
            background: url(../images/hotel.png) no-repeat bottom center;
            background-size: 121px auto;
            border: 0;
        }
    }
    .nav_common:nth-child(1) {
        background: -webkit-linear-gradient(left, #FA5A55, #FA994D);
    }
    .nav_common:nth-child(2) {
        margin: 3px 0;
        background: -webkit-linear-gradient(left, #4B90ED, #53BCED);
    }
    .nav_common:nth-child(3) {
        background: -webkit-linear-gradient(left, #34C2A9, #6CD559);
    }
}

.subnav_entry {
    display: flex;
    border-radius: 8px;
    background-color: #fff;
    margin: 0 4px;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, .2);
    // 换行
    flex-wrap: wrap;
    .subnav_entry_item {
        flex: 20%;
        .subnav_entry_item_lk {
            display: flex;
            flex-direction: column;
            align-items: center;
            font-size: 12px;
            margin: 5px 0;
            .subnav_entry_img {
                width: 28px;
                height: 28px;
                // 这个精灵图排列不是很规则，就不用js来循环了
                background: url(../images/subnav-bg.png) no-repeat 0 0;
                background-size: 28px auto;
            }
        }
    }
}

.sales_box {
    border-top: 1px solid #bbb;
    margin: 4px;
    background-color: #fff;
    .sales_hd{
        position: relative;
        height: 44px;
        border-bottom: 1px solid #ccc;
    }
    .sales_hd h2 {
        font-size: 0;
    }
    .sales_hd h2::before {
        content: "";
        position: absolute;
        top: 15px;
        left: 8px;
        width: 79px;
        height: 15px;
        background: url(../images/hot.png) no-repeat 0 -20px;
        background-size: 79px auto;
    }
    .sales_hd a {
        position: absolute;
        top: 7px;
        right: 5px;
        border-radius: 15px;
        background: -webkit-linear-gradient(left, #FF506C, #FF6BC6);
        padding: 3px 20px 3px 10px;
        color: #fff;
    }

    // 这个是小三角
    .sales_hd a::after {
        content: "";
        position: absolute;
        top: 9px;
        right: 10px;
        width: 7px;
        height: 7px;
        border-top: 1px solid #fff;
        border-right: 1px solid #fff;
        transform: rotate(45deg);
    }

    .sales_bd {
        .row {
            display: flex;
            .row_lk {
                flex: 1;
                border-bottom: 1px solid #eee;
                img {
                    // 给图片宽100%就行
                    width: 100%;
                }
            }
            .row_lk:nth-child(1) {
                border-right: 1px solid #eee;
            }
        }

    }
}


